home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 011 / hardlock.arc / HARDLOCK.LST < prev    next >
File List  |  1986-09-20  |  4KB  |  96 lines

  1. Microsoft (R) Macro Assembler  Version 4.00                 9/20/86 19:33:31
  2.  
  3.                                                             Page     1-1
  4.                                                             
  5.  
  6.                              C       include macros.asm 
  7.                              C       .LIST 
  8.                                  
  9.                                      Begincom hardlock 
  10.  0100  E9 033F R                     jmp   start 
  11.  0103  48 61 72 64 6C 6F 63     msg0     db    'Hardlock Completed Sucessfully',10,13,'$' 
  12.        6B 20 43 6F 6D 70 6C     
  13.        65 74 65 64 20 53 75     
  14.        63 65 73 73 66 75 6C     
  15.        6C 79 0A 0D 24           
  16.  0124  48 61 72 64 6C 6F 63     msg1     db    'Hardlock Disk I/O error.',10,13,'$' 
  17.        6B 20 44 69 73 6B 20     
  18.        49 2F 4F 20 65 72 72     
  19.        6F 72 2E 0A 0D 24        
  20.                                  
  21.  013F  0200[                    buffer     db    512 dup(?) 
  22.             ??                  
  23.                          ]      
  24.                                 
  25.                                  
  26.  033F                           start     proc  near 
  27.  033F  B8 0201                       mov   ax,0201h        ;read one sector 
  28.  0342  8D 1E 013F R                  lea   bx,buffer       ;set up read address 
  29.  0346  B9 0001                       mov   cx,1           ;read the partition table 
  30.  0349  BA 0080                       mov   dx,0080h        ;On drive C 
  31.  034C  CD 13                         int   13H           ;execute read 
  32.  034E  72 10                         jc    IO_FAIL           ;if carry - issue message 
  33.  0350  C6 87 01FF 00                 mov   byte ptr [bx+511],0 ;make disk unusable 
  34.  0355  B8 0301                       mov   ax,0301h        ;set up write command 
  35.  0358  CD 13                         int   13H 
  36.  035A  8D 16 0103 R                  lea   dx,msg0           ;point to OK message 
  37.  035E  73 04                         jnc   SENDMSG           ;display msg 
  38.  0360  8D 16 0124 R             IO_FAIL: lea   dx,msg1           ;point to failure message 
  39.  0364  B4 09                    SENDMSG: mov   ah,9           ;dos display string 
  40.  0366  CD 21                         int   21h           ;send message 
  41.  0368  CD 20                         int   20h           ;terminate program 
  42.                                 start     endp 
  43.                                      endcom hardlock 
  44.  
  45. Microsoft (R) Macro Assembler  Version 4.00                 9/20/86 19:33:31
  46.  
  47.                                                             Symbols-1
  48.                                                              
  49.  
  50. Macros:
  51.  
  52.         N a m e            Lines
  53.  
  54. @DEX . . . . . . . . . . . . . .         4
  55. @DOS . . . . . . . . . . . . . .         4
  56. @MSG . . . . . . . . . . . . . .        12
  57. @SVC . . . . . . . . . . . . . .         4
  58. BEGINCOM . . . . . . . . . . . .         6
  59. BIOSM  . . . . . . . . . . . . .       132
  60. COMEQ  . . . . . . . . . . . . .        24
  61. DEFS . . . . . . . . . . . . . .         3
  62. ENDCOM . . . . . . . . . . . . .         2
  63. KEYEQ  . . . . . . . . . . . . .        86
  64.  
  65. Segments and Groups:
  66.  
  67.                 N a m e             Size    Align    Combine Class
  68.  
  69. HARDLOCK . . . . . . . . . . . .      036A    PARA    NONE    'CODE'
  70.  
  71. Symbols:            
  72.  
  73.                 N a m e             Type    Value    Attr         
  74.  
  75. BUFFER . . . . . . . . . . . . .      L BYTE     013F    HARDLOCK    Length = 0200
  76.  
  77. IO_FAIL  . . . . . . . . . . . .      L NEAR    0360    HARDLOCK
  78.  
  79. MSG0 . . . . . . . . . . . . . .      L BYTE     0103    HARDLOCK
  80. MSG1 . . . . . . . . . . . . . .      L BYTE     0124    HARDLOCK
  81.  
  82. O0O0O0O0 . . . . . . . . . . . .      L NEAR    0100    HARDLOCK
  83.  
  84. SENDMSG  . . . . . . . . . . . .      L NEAR    0364    HARDLOCK
  85. START  . . . . . . . . . . . . .      N PROC    033F    HARDLOCK    Length = 002B
  86.  
  87.  
  88.     384 Source  Lines
  89.     393 Total   Lines
  90.      40 Symbols
  91.  
  92.   49232 Bytes symbol space free
  93.  
  94.       0 Warning Errors
  95.       0 Severe  Errors
  96.